package com.tianzy.sfl.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Eric.Zhang on 2016/12/19.
 */
@Controller
public class demo1 {

    protected static Logger logger= LoggerFactory.getLogger(demo1.class);

    @RequestMapping("/index")
    public String index(){
        logger.debug("访问welcome");
        return "welcome";
    }
    //默认页
    @RequestMapping("/")
    public String defualt() {
        return "forward:/index";
    }
}
